/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hotgammon.domain.game.Rules;

import hotgammon.domain.board.Board;
import hotgammon.domain.board.Color;
import hotgammon.domain.board.Location;

/**
 *
 * @author jeppewelling
 */
public class FromColorIsNotNone implements Rule {

    public boolean isValidMove(Board b, Location from, Location to, int[] movesLeft, Color playerInTurn) {
        return !(b.getColor(from) == Color.NONE);
    }

}
